<template>
  <div class="header">
    <img src="../pages/home/assets/university.png" alt="xx大学校徽" width="60px" height="60px" style="margin:15px;float:left">
    <div class="collegeName">
      <span>成都电讯工程学院</span>
    </div>
    <div class="time">{{nowTime}}</div>

  </div>

</template>


<script>
  // import dayjs from 'dayjs'

  export default {
    name:'Header',
    data(){
      return{
        nowTime:''
      }
    },
    methods:{

    },
    computed:{

    },
    mounted(){//首部栏动态时间显示
      // this.timer=setInterval(()=>{
      //     var timestamp = new Date().getTime();
      //     this.nowTime = dayjs(timestamp).format('YYYY MM-DD HH:mm:ss')
      // },1000)
    },
    beforeDestroy(){
      clearInterval(this.timer)
    }

  }
</script>


<style>
  .header{
    min-height: 90px;
  }
  .collegeName{
    float:left;
    font-size:60px;
    font-family: 华光行草_CNKI,serif;
    margin:7px;
    padding:5px;
    color: black
  }
  .time{
    float:left;
    margin-left: 530px;
    font-size:20px;
    padding:5px;
    color:black;
  }

</style>
